<template>
  <div>
    <!-- <OAone22 class="marginB20"/> -->


    <!-- orLiInfo.goods_type:  100实用新型、101外观设计、102发明 -->
    <ATop :orderInfo="orderInfo" :orLiInfo="orLiInfo"/>
    

    <Middle :orderInfo="orderInfo" :orLiInfo="orLiInfo"/>
    <!-- <PatentHasInfo ref="PatentHasInfo" :orderInfo="orderInfo" :orLiInfo="orLiInfo"/> -->

    <Other :orderInfo="orderInfo" :orLiInfo="orLiInfo" />
   
    
  </div>
</template>



<script>
// import OAone22 from './common/plugin/box/oAone22'
import ATop from './common/aTop';
import Middle from './common/middle';
// import PatentHasInfo from "./common/patentHasInfo";
import Other from './common/other';
export default {
  name: "patentDetails",
  components: {ATop,Middle,Other},
  data() {
    let {
      $route:{
        query:{
          order_id
        }
      }
    }=this;
    let data = {
      order_id,
      orLiInfo:{},//商品订单详情
      orderInfo:{}//服务订单详情
    };
    let tool = {};
    return Object.assign(data, tool);
  },
  created(){
    this.getData();
  },
  methods:{
    getData(){
      let {order_id}=this;
      //订单详情
      $ajax.orderInfo(order_id,resData=>{
        
        this.orLiInfo=resData;
        
        if($app.is100_102(resData.goods_type)){
          //恭喜你来对了地方
        }else{
          $app.toast('该订单暂无详情', false, () => {
            $app.closeTag(this.$route)// 关闭本页面
          });
        }
          
      });
      //专利详情
      $ajax.itwPT(order_id,resData=>{
        this.orderInfo=resData;
      });
    }
  },
  mounted() {
    
  }
};
</script>

